package com.huawei;

import java.util.Scanner;


/*
阿西吧，好奇怪的题目
x+y+z=100
5x+3y+z/3 =100

z = 100-x-y
5x+3y+(100-x-y)/3=100
15x+9y+100-x-y=300
14x+8y=200

7x+4y=100

y=(100-7x)/4

 */
public class HJ072 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String next = scanner.next();
        work();
    }

    public static void work(){
        for (int x = 0; x < 15; x++) {
            if((100-7*x)%4==0){
                int y = (100-7*x)/4;
                int z = 100 - x -y;
                System.out.println(x+" "+y+" "+z);
            }
        }
    }
}
